﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Film.Repository;

/// <summary>
/// Summary description for DataContext
/// </summary>
public class SingleDataContext
{
    private static FilmDBDataContext _dataContext;

    public static FilmDBDataContext CurrentInstance()
    {
        if (_dataContext == null)
            _dataContext = new FilmDBDataContext();
        return _dataContext;
    }
}